package com.klikmee.sms.core.base.communicator.mts;

import com.klikmee.sms.core.base.resolvers.AbstractServiceResolver;
import com.klikmee.sms.core.model.IncomingMessage;
import com.klikmee.sms.core.model.Service;

/**
 * Resolves {@link IncomingMessage#getToNumber()} to {@link Service#getMTSShortCode()} property.
 * @author makcro
 *
 */
public class IncomingMsgToServiceResolverImpl extends AbstractServiceResolver {

	@Override
	protected boolean matchProviersShortCode(IncomingMessage incomingMessage, Service service) {
		return incomingMessage.getToNumber().matches(service.getMTSShortCode());
		
	}

}
